#pragma once
#include "pch.h"

using namespace DirectX;
struct BLOCKVERTEX
{
	XMFLOAT3 position;
	XMFLOAT4 color;
	XMFLOAT2 uv;
	XMFLOAT3 normal;
};

struct BLOCKCONSTANT
{
	XMFLOAT4X4 model = {};
	XMFLOAT4X4 view = {};
	XMFLOAT4X4 projection = {};
	XMFLOAT4 diffuse = {};
	FLOAT padding[12];
};

struct BLOCK
{
	int row = 0;
	int col = 0;
	XMFLOAT4 color;
	UINT8 data[16];
};

struct CELLCUBE
{
	UINT8 isShow;
	XMFLOAT4 color;
	UINT8 type = 0;
};

static BLOCK BaseShapes[7] = {
	{2,2,{1,0,0,1},{ 1, 1, 0, 0, 1,1,0,0, 0,0,0,0, 0,0,0,0}},
	{1,4,{0,1,0,1},{1,1,1,1, 0,0,0,0, 0,0,0,0, 0,0,0,0}},
	{2,3,{0,0,1,1},{0,1,1,0, 1,1,0,0, 0,0,0,0 ,0,0,0,0}},
	{2,3,{1,1,0,1},{ 1, 1, 0, 0, 0,1,1,0, 0,0,0,0, 0,0,0,0}},
	{2,3,{1,0,1,1},{ 1, 1, 1, 0, 0,0,1,0, 0,0,0,0, 0,0,0,0}},
	{2,3,{0,1,1,1},{ 1, 1, 1, 0, 1,0,0,0, 0,0,0,0, 0,0,0,0}},
	{2,3,{0.7,0.7,0.0,1},{ 0, 1, 0, 0, 1,1,1,0, 0,0,0,0, 0,0,0,0}}
};